package org.libra.events {
	import flash.events.Event;
	
	/**
	 * ...
	 * @author zhangzuoqiang
	 */
	public class PageEvent extends Event {
		
		public static const PAGE_CHANGED:String = "pageChanged";
		
		private var minNum:int;
		private var maxNum:int;
		private var curNum:int;
		
		public function PageEvent(type:String, minNum:int, maxNum:int, curNum:int, bubbles:Boolean=false, cancelable:Boolean=false) { 
			super(type, bubbles, cancelable);
			this.minNum = minNum;
			this.maxNum = maxNum;
			this.curNum = curNum;
		}
		
		public function getMinNum():int {
			return this.minNum;
		}
		
		public function getMaxNum():int {
			return this.maxNum;
		}
		
		public function getCurNum():int {
			return this.curNum;
		}
		
		public override function clone():Event { 
			return new PageEvent(type, minNum, maxNum, curNum, bubbles, cancelable);
		} 
		
		public override function toString():String { 
			return formatToString("PageEvent", "type", "minNum", "maxNum", "curNum", "bubbles", "cancelable", "eventPhase");
		}
		
	}
	
}